<template>
     <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item  in bannerList" :key="item.id">
          <img :src="item.src"/>
      </van-swipe-item>
    </van-swipe>
</template>

<script>
export default {
    props:["bannerList"]

}
</script>


<style>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
  height: 150px;
  width: 375px;
}
.my-swipe  .van-swipe-item  img{
  width: 100%;
  height: 100%;
}
</style>